package com.dongdongshop.service.cart;

import com.dongdongshop.pojo.cart.Cart;

import java.util.List;

public interface CartService {
    List<Cart> findCarttsByUsernameForCache(String username);

    List<Cart> mergeCartList(List<Cart> carsByCache, List<Cart> carsByCookie);

    void saveCartListToRedis(List<Cart> cartList, String username);

    List<Cart> addGoodsToCartList(List<Cart> cartList, Long itemId, Integer num);

    List<Cart> getItemsByItemId(List<Long> itemIds, String username);

    List<Cart> deleteCartOrderItem(List<Cart> cartsList, Long itemId);
}
